//
//
//  Created by chao on 16/7/28.
//  Copyright © 2016年 chao. All rights reserved.
//

#import "BaseTabBarController.h"
#import "BaseNavigationController.h"

#import "MK_HomePageViewController.h"
#import "MK_CollectViewController.h"
#import "MK_LivingViewController.h"
#import "MK_MineViewController.h"

@interface BaseTabBarController () <UITabBarControllerDelegate>

@end

@implementation BaseTabBarController

-(void)viewDidLoad{
    [super viewDidLoad];
    
    
    [self addChildViewController:[BaseNavigationController BaseNavigationControllerGetWithRootViewController:[MK_HomePageViewController new] andimageName:@"TabBar首页" andTitle:@"首页" andTag:1]];
    [self addChildViewController:[BaseNavigationController BaseNavigationControllerGetWithRootViewController:[[MK_LivingViewController alloc]init] andimageName:@"TabBar直播" andTitle:@"直播"andTag:2]];
    [self addChildViewController:[BaseNavigationController BaseNavigationControllerGetWithRootViewController:[[MK_CollectViewController alloc]init] andimageName:@"TabBar关注" andTitle:@"收藏"andTag:3]];
    [self addChildViewController:[BaseNavigationController BaseNavigationControllerGetWithRootViewController:[[MK_MineViewController alloc]init] andimageName:@"TabBar我的" andTitle:@"我的"andTag:2]];
    
    self.tabBar.tintColor = [UIColor colorWithRed:0.99 green:0.50 blue:0.14 alpha:1.00];
    
}

-(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{
    return UIInterfaceOrientationPortrait;
}
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
    return UIInterfaceOrientationMaskPortrait;
}


@end
